﻿namespace Mp3Observer.Common.IoC
{
    /// <summary>
    /// contract for the nDependencyResolver 
    /// </summary>
    public interface IDependencyResolver
    {
        /// <summary>
        /// Resolves the instance by type.
        /// </summary>
        /// <typeparam name="T">type in the dictionary.</typeparam>
        /// <returns>the implementation</returns>
        T Resolve<T>();

        /// <summary>
        /// Resolves the instance by type and name.
        /// </summary>
        /// <typeparam name="T">>type in the dictionary.</typeparam>
        /// <param name="name">The name (player1,player2).</param>
        /// <returns>the implementation</returns>
        T ResolveByName<T>(string name);
    }
}
